package com.eunion.web.character.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.eunion.web.character.entity.CharacterClass;
import com.eunion.web.character.service.CharacterClassService;

@RestController
@RequestMapping(value = "/api/restCharacterClass")
public class RestCharacterClassController {

	@Autowired
	private CharacterClassService characterClassService;
	@Autowired
    private ApplicationContext applicationContext;
	
	
	@GetMapping(value = "/byssll")
	public List<CharacterClass> getCharacterClassBySslx(String sslx){
		return characterClassService.findCharacterClassBySslx(sslx);
	}
}
